package com.YCH.model.mappers.app;

import com.YCH.model.behavior.dtos.ForwardBehaviorDto;
import com.YCH.model.behavior.pojos.TbForwardBehavior;
import org.apache.ibatis.annotations.Param;

public interface TbForwardBehaviorMapper {
    /**
     * 转发人数
     *
     * @return
     */
    Integer selectForwardCount();

    /**
     * 查询该用户是否转发
     *
     * @return
     */
    TbForwardBehavior selectForwardByUserIdAndarticleId(@Param("userId") Long userId, @Param("articleId") Long articleId);

    /**
     * 转发后执行插入转发数据
     * @param tbForwardBehavior
     * @return
     */
    Integer insert(@Param("forwardBehavior") ForwardBehaviorDto tbForwardBehavior);
}